﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BW.Models
{
    /// <summary>
    /// 会员表
    /// </summary>
    public class Member : ModelAudit
    {
        /// <summary>
        /// 设计表的主键
        /// 因为这里是int类型。所有默认就是递增
        /// </summary>
        [Key]
        public int Id { get; set; }

        /// <summary>
        /// 会员号
        /// 会员号【C#实现年月日时分秒加三位随机数】
        /// </summary>
        public string Code { get; set; }



        /// <summary>
        /// 头像
        /// </summary>
        [Required, MaxLength(500)]
        public string Img { get; set; }


        //1女2男
        public int Age { get; set; }

        public string Name { get; set; }
        public string Password { get; set; }
        /// <summary>
        /// 注册时间【默认值取系统时间】
        /// 这里当成出生日期来看待
        /// </summary>
        public DateTime CreateDate { get; set; }

        /// <summary>
        /// 1表示正常【默认值 】
        /// 2表示冻结
        /// </summary>
        public int Start { get; set; } = 1;

        /// <summary>
        /// 会员等级编号
        /// </summary>
        public int LevelId { get; set; }
        /// <summary>
        /// 1表示女
        /// 2表示男
        /// </summary>
        public int Sex { get; set; }




    }
}
